'use strict';

angular.module('afasApp')
  .controller('GeClassReportCtrl', ['$scope', 'Services', '$state', '_', '$filter', function ($scope, Services, $state, _, $filter) {
    $scope.selectedType = 1;
    $scope.types = [
      {
        'id': 1,
        'value': 'Discount Free Courses'
      },
      {
        'id': 2,
        'value': 'Discount Free Repeat'
      },
      {
        'id': 3,
        'value': 'Discount Oter'
      },
      {
        'id': 4,
        'value': 'Discount Staff Sponsor'
      },
      {
        'id': 5,
        'value': 'Result Borderline Pass'
      },
      {
        'id': 6,
        'value': 'Result Drop Out'
      },
      {
        'id': 7,
        'value': 'Result Free Repeat'
      },
      {
        'id': 8,
        'value': 'Result Repeat'
      },
      {
        'id': 9,
        'value': 'Status Best Student'
      },
      {
        'id': 10,
        'value': 'Status Superstar'
      }
    ]
  }])
  .controller('GeStudentReportCtrl', ['$scope', 'Services', '$state', '$stateParams', function ($scope, Services, $state, $stateParams) {
    $scope.sorts = [
      {
        'value': 'SID',
        'label': 'SID'
      },
      {
        'value': 'FullName',
        'label': 'Full Name'
      }
    ];
    $scope.orderBy = 'SID';
  }])
  .controller('FoPtReportCtrl', ['$scope', 'Services', '$state', '$stateParams', function ($scope, Services, $state, $stateParams) {

  }])
  .controller('CashierDailyReportCtrl', ['$scope', 'Services', '$state', '$stateParams', function ($scope, Services, $state, $stateParams) {

    $scope.date = moment().format('YYYY-MM-DD');

    $scope.$watch('timepicker.timeA', function(newValue, oldValue){
      var dateRaw = moment(newValue);
      // var dateSend = dateRaw.format('DD-MM-YYYY');
      var dateSend = dateRaw.format('YYYY-MM-DD');
      $scope.date = dateSend;
    });

  }])
  .controller('FinanceRefundReportCtrl', ['$scope', 'Services', '$state', '$stateParams', function ($scope, Services, $state, $stateParams) {

  }])
  .controller('FinanceFeeReportCtrl', ['$scope', 'Services', '$state', '$stateParams', function ($scope, Services, $state, $stateParams) {

  }])
  .controller('FinanceSummaryReportCtrl', ['$scope', 'Services', '$state', '$stateParams', function ($scope, Services, $state, $stateParams) {

  }])
  .controller('FinanceIncomeReportCtrl', ['$scope', 'Services', '$state', '$stateParams', function ($scope, Services, $state, $stateParams) {

  }])
  .controller('FinancePaymentReportCtrl', ['$scope', 'Services', '$state', '$stateParams', function ($scope, Services, $state, $stateParams) {

  }]);